/**
 * Created by ly on 2015/4/22.
 */
;
angular.module("userRoleService",["ngResource", "ngCookies", "angular-md5"]).factory("userRole",
  function($resource,$cookieStore,md5){
    configs.token = $cookieStore.get("token");
    $.cinit(configs);
    var url = $.getUrl("getRoleList",[],md5);
    var userRoles = $resource(url,{},{
      query: {method: "GET", params: {}, isArray: false}
    });
    return userRoles;
});
